package com.yh.common.constant;

import lombok.Getter;


/**
 * 检测类型
 */
@Getter
public enum CheckTypeEnums {
	FIRST_CHECK(1, "首检"),
	SECOND_CHECK(2, "巡检");


	private Integer code;
	private String message;

	CheckTypeEnums(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
	
	public static CheckTypeEnums stateOf(int index) {
		for (CheckTypeEnums state : values()) {
			if (state.getCode() == index) {
				return state;
			}
		}
		return null;
	}
}
